!!! Strict
%html
  %head
    %title Barnum
    %link{:rel => 'stylesheet', :href => '/stylesheets/reset.css', :type => 'text/css'}
    %link{:rel => 'stylesheet', :href => '/stylesheets/style.css', :type => 'text/css'}
    %link{:rel => 'stylesheet', :href => '/stylesheets/signup.css', :type => 'text/css'}
    %link{:rel => 'shortcut icon', :href => '/favicon.ico'}
    %script{:src => '/javascripts/prototype.js', :type => "text/javascript"}
    %script{:src => '/javascripts/magic_drop_down.js', :type => "text/javascript"}
    %script{:src => '/javascripts/forms.js', :type => "text/javascript"}
    %script{:src => '/javascripts/application.js', :type => "text/javascript"}
    %script{:src => '/javascripts/confirm_delete.js', :type => "text/javascript"}
  %body
    #flash= flash[:error]
    #flash= flash[:alert]
    #hd
      #header.clearfix
        #head-left-box{:href => events_url}
          #inner-logo-box-left
            Super Cool
          #inner-logo-box-right
            Event Manager
        #language
          %a{:href => edit_language_url('en-US')} English
          %a{:href => edit_language_url('de-DE')} German
          %a{:href => edit_language_url('es-ES')} Spanish
        #login
          - if logged_in?
            =link_to 'Logout'.t, logout_url
            %span.separator= '|'
            = "Logged as"
            %a{:href => user_url(current_user.id)}= current_user.login 
            - else
              %a{:href => new_session_url}= 'Login'.t 
              %span.separator= '|'
              %a{:href => new_user_url}= 'Sign Up'.t  
      .navigation
        %a{:href => events_url}= 'View Events'.t
        \|
        %a{:href => series_url}= 'View Series'.t
    #bd.clearfix
      #sidenav
        .first= link_to ((image_tag('one_new.gif') + 'New Event'.t), new_event_url )
        .second= link_to ((image_tag('two_new.gif') + 'New Events'.t), new_one_series_url )
      #sidebar
        %form{:action => reroute_categories_url, :method => "get"} 
          %select.category_rerouter{:name => "id"}
            %option{:value => ''}= 'Browse by Category'.t
            - @categories.each do |category|
              %option{:value => category.id}= category.name
          %input{:type => "submit", :value => "go".t}    
        /#calendar= image_tag('/images/cal.png', :size => "170x150", :alt => "Edit Entry")
      #content
        = yield
    #ft
      %p UM - Barnum. Open source, large and in charge since 2008.
